package bookstore.bound.order;

import bookstore.model.OrderItem;

public class OrderItemDisp {
    private String ISBN;
    private String name;
    private String author;
    private String house;
    private int sellPrice;
    private int cnt;

    public OrderItemDisp(OrderItem orderItem) {
        ISBN = orderItem.getBook().getIsbn();
        name = orderItem.getBook().getName();
        author = orderItem.getBook().getAuthor();
        house = orderItem.getBook().getHouse();
        sellPrice = orderItem.getPrice();
        cnt = orderItem.getCount();
    }

    public String getName() {
        return name;
    }

    public int getCnt() {
        return cnt;
    }

    public String getISBN() {
        return ISBN;
    }

    public String getHouse() {
        return house;
    }

    public String getAuthor() {
        return author;
    }

    public int getSellPrice() {
        return sellPrice;
    }
}
